#include <fstream>

int main()
{
   std::ifstream in("in.txt");
   std::ofstream out("out.txt");

   int n;
   in >> n;

   int len = 0;

   int x = 0;
   int y = 0;

   int dx = 0;
   int dy = -1;

   int ddx = 1;
   int ddy = 1;

   for (int i = 0; i < n; ++i)
   {
      out << x << " " << y << "\n";
      dx += ddx;
      dy += ddy;
      if (abs(dx) == 1) 
      {
          ddx *= -1;
      }
      if (abs(dy) == 1)
      { 
         ddy *= -1;
      }
      if (i % 2 == 0) 
      {
         len++;
      }
      x += dx * len;
      y += dy * len;      
   }
   out.close();
   in.close();
   return 0;
}